package com.annotation.demo5;

import com.generic.demo1.Dog;

/**
 * @ClassName Test
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/30 16:40
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {


        // 创建哺乳动物饲养员
        MammalKeeper keeper1 = new MammalKeeper("哺乳动物饲养员", new Lion("狮子"));
        keeper1.feed();
        keeper1.patrol();
        keeper1.healthCheck();

        System.out.println("----------------------------");

        // 创建海洋动物饲养员
        MarineAnimalKeeper keeper2 = new MarineAnimalKeeper("海洋动物饲养员", new Shark("鲨鱼"));
        keeper2.feed();
        keeper2.patrol();
        keeper2.healthCheck();

        System.out.println("----------------------------");

        // 创建飞禽动物饲养员
        BirdKeeper keeper3 = new BirdKeeper("飞禽动物饲养员", new Dove("鸽子"));
        keeper3.feed();
        keeper3.patrol();
        keeper3.healthCheck();
    }
}
